﻿using StructureMap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Slam.StructureMap
{
    public class TypeContainer : ITypeContainer
    {
        private IContainer _container;
        public TypeContainer(IContainer container)
        {
            _container = container;
        }

        public T Resolve<T>()
        {
            return _container.GetInstance<T>();
        }
    }
}
